/**********************************************************************************************************************
 * @file    compiler.h
 * @author  Queclink Hubert.Lee
 * @date    2016-12-22
 * @brief   编译器相关定义统一化, 为编码提供便利.
 * @ingroup hdl
 * Copyright (C) 2016 Queclink Wireless Solutions (ShenZhen) Co., Ltd. All Rights Reserved.
 *
 * @attention
 *
 * @usage
 *
 *********************************************************************************************************************/


#ifndef __COMPILER_H
#define __COMPILER_H

/* includes ---------------------------------------------------------------------------------------------------------*/

#ifdef __cplusplus
extern "C" {
#endif


#if defined __GNUC__ /* GCC */
  #define __WEAK__  __attribute__((weak))
#elif defined __ICCARM__ /* IAR */
  #define __WEAK__  __WEAK
#else
  #error "Do Not Support This Compiler!"
#endif


#ifdef __cplusplus
}
#endif

#endif /* __COMPILER_H */